package com.workstudy.wstudy.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.workstudy.wstudy.mapper.WstPostExamineMapper;
import com.workstudy.wstudy.domain.WstPostExamine;
import com.workstudy.wstudy.service.IWstPostExamineService;
import com.workstudy.common.core.text.Convert;

/**
 * 岗位审核Service业务层处理
 * 
 * @author sun
 * @date 2021-04-07
 */
@Service
public class WstPostExamineServiceImpl implements IWstPostExamineService 
{
    @Autowired
    private WstPostExamineMapper wstPostExamineMapper;

    /**
     * 查询岗位审核
     * 
     * @param postId 岗位审核ID
     * @return 岗位审核
     */
    @Override
    public WstPostExamine selectWstPostExamineById(Long postId)
    {
        return wstPostExamineMapper.selectWstPostExamineById(postId);
    }

    /**
     * 查询岗位审核列表
     * 
     * @param wstPostExamine 岗位审核
     * @return 岗位审核
     */
    @Override
    public List<WstPostExamine> selectWstPostExamineList(WstPostExamine wstPostExamine)
    {
        return wstPostExamineMapper.selectWstPostExamineList(wstPostExamine);
    }

    /**
     * 新增岗位审核
     * 
     * @param wstPostExamine 岗位审核
     * @return 结果
     */
    @Override
    public int insertWstPostExamine(WstPostExamine wstPostExamine)
    {
        return wstPostExamineMapper.insertWstPostExamine(wstPostExamine);
    }

    /**
     * 修改岗位审核
     * 
     * @param wstPostExamine 岗位审核
     * @return 结果
     */
    @Override
    public int updateWstPostExamine(WstPostExamine wstPostExamine)
    {
        return wstPostExamineMapper.updateWstPostExamine(wstPostExamine);
    }

    /**
     * 删除岗位审核对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteWstPostExamineByIds(String ids)
    {
        return wstPostExamineMapper.deleteWstPostExamineByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除岗位审核信息
     * 
     * @param postId 岗位审核ID
     * @return 结果
     */
    @Override
    public int deleteWstPostExamineById(Long postId)
    {
        return wstPostExamineMapper.deleteWstPostExamineById(postId);
    }
}
